package com.linjj.seckill.service;

import com.linjj.seckill.domain.User;
import com.linjj.seckill.vo.LoginVo;
import com.linjj.seckill.vo.RegistVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IUserService {
    public int register(RegistVo registVo);
    public boolean login(HttpServletResponse response,LoginVo loginVo);
    public User getUserByToken(HttpServletResponse response,String cookieToken);
    public boolean updateUser(User user,HttpServletRequest request);
    public boolean logout(HttpServletRequest request);
}
